1600684d4f7dab8db570d02212f4bd12bb73a1a0,lib/server-test/src/test/java/org/apache/olingo/server/core/uri/parser/ExpandParserTest.java,ExpandParserTest,keyPredicatesInExpandFilter,#,542

Before Change


  public void keyPredicatesInExpandFilter() throws Exception {
    testUri.run("ESKeyNav(0)", "$expand=NavPropertyETTwoKeyNavMany($filter=NavPropertyETTwoKeyNavMany"
        + "(PropertyInt16=1,PropertyString='2')/PropertyInt16 eq 1)").goExpand()
        .first().goPath().isNavProperty("NavPropertyETTwoKeyNavMany", EntityTypeProvider.nameETTwoKeyNav, true)
        .goUpExpandValidator().goFilter()
        .is("<<NavPropertyETTwoKeyNavMany/PropertyInt16> eq <1>>");
  }

After Change


        .goPath().isNavProperty("NavPropertyETTwoKeyNavMany", EntityTypeProvider.nameETTwoKeyNav, true)
        .goUpExpandValidator().goFilter()
        .left().goPath()
        .isNavProperty("NavPropertyETTwoKeyNavMany", EntityTypeProvider.nameETTwoKeyNav, false)
        .isKeyPredicate(0, "PropertyInt16", "1")
        .isKeyPredicate(1, "PropertyString", "'2'")
        .n().isPrimitiveProperty("PropertyInt16", PropertyProvider.nameInt16, false);
  }